-- GENERATED SPELL FOR [Citizen of Havenshire] --


function spell0_28577(pUnit, Event) --@Cornered and Enraged!,Self--
pUnit:FullCastSpellOnTarget(52262,pUnit)
pUnit:RegisterEvent('Sorts_28577', 643, 1)
end

function Sorts_28577(pUnit, Event)
local choix_sorts_28577 = math.random(0, 0)
if choix_sorts_28577 == 0 then
pUnit:RegisterEvent('spell0_28577', 1, 1)
end
end

function mob28577_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28577', math.random(1500, 3000), 1)
end

function mob28577_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28577_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28577_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28577, 1, 'mob28577_Action')
RegisterUnitEvent(28577, 2, 'mob28577_Leave')
RegisterUnitEvent(28577, 3, 'mob28577_Kill')
RegisterUnitEvent(28577, 4, 'mob28577_Die')
